//
//  CMDBAssociateHeaderView.swift
//  CMDB
//
//  Created by 王磊 on 09/05/2017.
//  Copyright © 2017 CMDB. All rights reserved.
//

import UIKit

class CMDBAssociateHeaderView: UICollectionReusableView {
    
    private var titleLabel: UILabel = UILabel()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        configOwnSubviews()
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
extension CMDBAssociateHeaderView {
    
    override func configOwnSubviews() {
        
        addSubview(titleLabel)
        
        titleLabel.font = CMDB_16_FONT
        
        titleLabel.text = "欢迎加入cmdb,请关联您的作品"
        
        titleLabel.textColor = word54Color
        
        titleLabel.textAlignment = .Left
    }
}
extension CMDBAssociateHeaderView {
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        titleLabel.snp_makeConstraints { (make) in
            
            make.left.equalTo(Associate_Section_Inset_Margin)
            
            make.right.equalTo(0)
            
            make.top.equalTo(0)
            
            make.bottom.equalTo(0)
        }
        
    }
    
}
